import java.util.Scanner;
public class Homework_03 {

	public static void main(String[] args) {
		Scanner reader=new Scanner(System.in);
		int n=0;
		while(n<=10)
		{
			System.out.printf("请输入1个正整数：>");
			int x=reader.nextInt();
			if(x>0)
			{
				System.out.printf("逆序输出：");
				while(x>0)
				{
					System.out.printf("%d", x%10);
					x=x/10;
				}
				System.out.printf("\n");
				n++;
			}
			else
			{
				System.out.printf("输入错误！");
			}
		}
	}

}
